package com.mkx.infrastructure.repository;

import com.mkx.infrastructure.entity.UserEntity;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * 用户仓储接口
 */
@Repository
public interface PlatformUserRepository {
    
    Optional<UserEntity> findByUsername(String username);
    
    Optional<UserEntity> findByEmail(String email);
    
    Optional<UserEntity> findByPhone(String phone);
    
    boolean existsByUsername(String username);
    
    boolean existsByEmail(String email);
    
    boolean existsByPhone(String phone);
}